package cn.terminus.client.customer.contractrentincrementalclause.service;

import cn.terminus.client.customer.contractrentincrementalclause.param.ContractRentIncrementalClauseNewParam;
import cn.terminus.client.customer.contractrentincrementalclause.param.ContractRentIncrementalClauseEditParam;
import cn.terminus.client.customer.contractrentincrementalclause.param.ContractRentIncrementalClauseQueryParam;
import cn.terminus.client.customer.contractrentincrementalclause.param.ContractRentIncrementalClauseDeleteParam;
import cn.terminus.client.customer.contractrentincrementalclause.param.ContractRentIncrementalClauseGetsParam;
import cn.terminus.client.customer.contractrentincrementalclause.result.ContractRentIncrementalClauseResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * 合同递增条款(ContractRentIncrementalClause)表服务接口
 *
 * @author makejava
 * @since 2021-07-21 11:16:29
 */
public interface ContractRentIncrementalClauseService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(ContractRentIncrementalClauseNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(ContractRentIncrementalClauseEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractRentIncrementalClauseResult>> gets(ContractRentIncrementalClauseGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(ContractRentIncrementalClauseDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractRentIncrementalClauseResult>> query(ContractRentIncrementalClauseQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<ContractRentIncrementalClauseResult>> page(ContractRentIncrementalClauseQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
